﻿<!DOCTYPE html>
<html>
<head>
    @{ string uiTheme = "~/Content/themes/" + @ViewBag.UiTheme + "/jquery-ui.css"; }
    @* @{ string uiTheme = "~/Content/themes/base/jquery-ui.all.css"; } *@
    @{ string jqgridUiTheme = "~/Content/themes/" + @ViewBag.UiTheme + "/ui.jqgrid.css"; }
    @{ string siteUiTheme = "~/Content/themes/" + @ViewBag.UiTheme + "/site.less.css"; }
    @{ string mySiteUiTheme = "~/Content/themes/" + @ViewBag.UiTheme + "/mysite.less.css"; }
    @{ string formUiTheme = "~/Content/themes/" + @ViewBag.UiTheme + "/form.less.css"; }
    @* @{ string appmsgUiTheme = "~/Content/themes/" + @ViewBag.UiTheme + "/ApplicationMessages.css"; } **@
    @{ string validationUiTheme = "~/Content/themes/" + @ViewBag.UiTheme + "/validationEngine.jquery.css"; }
    <meta charset="utf-8" />
    <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>@*@("Opus Suite - " + ViewBag.Title)*@</title>

    <link href="@Url.Content("~/Content/themes/south-street/jquery.qtip.css")" rel="stylesheet" type="text/css"/>

    <link href="@Url.Content(@uiTheme)" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content(@jqgridUiTheme)" rel="stylesheet" type="text/css" />
    <link href="@Url.Content(@siteUiTheme)" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content(@mySiteUiTheme)" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content(@formUiTheme)" rel="stylesheet" type="text/css"/>
    @*<link href="@Url.Content(@appmsgUiTheme)" rel="stylesheet" type="text/css"/>*@
    <link href="@Url.Content(@validationUiTheme)" rel="stylesheet" type="text/css"/>

    <script src="@Url.Content("~/Scripts/jquery-1.7.1.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.16.js")" type="text/javascript"></script>
@*
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.core.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.widget.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.draggable.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.droppable.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.resizable.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.selectable.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.position.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.sortable.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.mouse.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.accordion.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.autocomplete.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.button.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.datepicker.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.dialog.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.menu.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.menubar.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.popup.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.progressbar.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.slider.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.spinner.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.tabs.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.ui.tooltip.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.effects.core.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.effects.blind.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.effects.bounce.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.effects.clip.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.effects.drop.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.effects.explode.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.effects.fade.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.effects.fold.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.effects.highlight.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.effects.pulsate.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.effects.scale.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.effects.shake.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.effects.slide.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.9/jquery.effects.transfer.js")" type="text/javascript"></script>
*@
    <script src="@Url.Content("~/Scripts/validationEngine/jquery.validationEngine-en.js")" type="text/javascript" charset="utf-8"></script>
    <script src="@Url.Content("~/Scripts/validationEngine/jquery.validationEngine.js")" type="text/javascript" charset="utf-8"></script>
    <script src="@Url.Content("~/Scripts/modernizr-2.0.6.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.timers-1.2.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Shared/OpusMessageDialog.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Shared/Spin.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Shared/ProgressSpinner.js")" type="text/javascript"></script>

@{ string appmsgUiTheme = "~/Content/themes/" + @ViewBag.UiTheme + "/ApplicationMessages.css"; }
<link href="@Url.Content(@appmsgUiTheme)" rel="stylesheet" type="text/css"/>
    <script src="@Url.Content("~/Scripts/ApplicationMessages2.js")" type="text/javascript"></script>
    
    @* todo - disable with yesno depdning on user setting *@
    <script src="@Url.Content("~/Scripts/jquery.qtip.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/opusTooltip.js")" type="text/javascript"></script>

    @MvcMiniProfiler.MiniProfiler.RenderIncludes()

</head>
<body>
    <div id="container" style="display: table; height: 100%; width:100%">
        <div id="cell" style="display: table-cell; vertical-align: middle; width: 100%">
            <div class="page">
                <section>
                    <div id="logindisplay">@Html.Partial("_HeaderPanel")</div>
                    <div><br /><br /></div>
                </section>
                <section id="main">
                    @RenderBody()
                </section>
                <footer>
                    @Html.Partial("_FooterPanel")
                </footer>
            </div>

        </div>
    </div>

    <div id="dialogOpusMessage" title="" style="overflow: hidden;" />
    <div id="progressSpinner" title="" style="overflow: hidden;" />
</body>
<script type="text/javascript">
    if (Modernizr.borderradius) {
        $(function () { $("#html5").hide(); });
    }
</script>

@* For alpha
<script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-25742444-1']);
    _gaq.push(['_trackPageview']);

    (function () {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

</script>

for demo
<script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-22933110-1']);
    _gaq.push(['_trackPageview']);

    (function () {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

</script>

*@
</html>
